package demo_0324;

public class BaseSalaryEmployee extends Employee {
    private double basesalary;
    private double tc;
    private double salemoney;
    public BaseSalaryEmployee(String name, int age, double basesalary, double tc, double salemoney) {
        super(name, age);
        this.basesalary = basesalary;
        this.tc = tc;
        this.salemoney = salemoney;
    }
    @Override
    public double weeklySalary() {
        return basesalary + (salemoney * tc);
    }
}
